package demo2;

public class PetDog {

    public String name;//名字
    public String color;//颜色

    public PetDog(String name, String color) {
        this.name = name;
        this.color = color;
    }
}
class Test {
    public static void main(String[] args) {
        PetDog dog1 = new PetDog("阿黄","黑色");
    }
}
